package com.xcl.ui;

import java.awt.EventQueue;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JButton;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Manager extends JFrame {

	private JFrame frame;
	private JButton btnNewButton;
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Manager window = new Manager();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Manager() {
		System.out.println("构造方法执行");
		frame = new JFrame();
		frame.setBounds(100, 100, 1000, 700);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JLabel text=new JLabel("测试");
		frame.getContentPane().add(text);
////		frame.getContentPane().setLayout(null);
//		
//		btnNewButton = new JButton("商铺管理");
//	
//		btnNewButton.addMouseListener(new MouseAdapter() {
//			@Override
//			public void mouseClicked(MouseEvent e) {
//			}
//		});
////		btnNewButton.setBounds(694, 246, 146, 47);
//		frame.getContentPane().add(btnNewButton);
//		
//		JButton btnNewButton_1 = new JButton("客户管理");
//		btnNewButton_1.addMouseListener(new MouseAdapter() {
//			@Override
//			public void mouseClicked(MouseEvent e) {
//			}
//		});
////		btnNewButton_1.setBounds(694, 339, 146, 47);
//		frame.getContentPane().add(btnNewButton_1);
//		
//		JButton btnNewButton_2 = new JButton("盈利计算");
//	
//		btnNewButton_2.addMouseListener(new MouseAdapter() {
//			@Override
//			public void mouseClicked(MouseEvent e) {
//			}
//		});
////		btnNewButton_2.setBounds(694, 434, 146, 47);
//		frame.getContentPane().add(btnNewButton_2);
//		ImageIcon img=new ImageIcon("E:\\运营商主菜单.png");
//		JPanel jp= (JPanel)frame.getContentPane();
//		jp.setOpaque(false);
////		frame.getContentPane().setLayout(null);
//		JLabel bg=new JLabel(img);
////		bg.setBounds(0, 13, 1000, 700);
//		frame.getLayeredPane().add(bg, new Integer(Integer.MIN_VALUE));
//		jp.add(bg);
	}


}
